﻿using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework.Config;
using NoMiddleman.Core.Domain;

namespace NoMiddleman.DbGenerator
{
    class Program
    {
        static void Main(string[] args)
        {
            ActiveRecordStarter.Initialize(typeof(Advert).Assembly,
                new XmlConfigurationSource("appconfig.xml"));

            ActiveRecordStarter.CreateSchema();
        }
    }
}
